<?php
/**
 * Created by PhpStorm.
 * User: laowang
 * Date: 2018/7/12
 * Time: 下午3:28
 */

namespace app\home\model;


use think\Model;

class Write extends Model
{
    public function get_list($where,$len=0){
        $list = $this->where($where)->order('create_time','desc')->field('openid,id,name,vip,tel,time')->limit($len,12)->select();
        foreach ($list as $value){
            $value['time'] = date('Y年m月d日 H:i',$value['time']);
            $value['is_sign'] = WechatUser::where('openid',$value['openid'])->value('is_sign');
        }
        return $list;
    }
}